/**
 * 
 */
package com.rover022.webgame;

import it.gotoandplay.smartfoxserver.data.User;
import it.gotoandplay.smartfoxserver.data.Zone;
import it.gotoandplay.smartfoxserver.events.InternalEventObject;
import it.gotoandplay.smartfoxserver.extensions.AbstractExtension;
import it.gotoandplay.smartfoxserver.extensions.ExtensionHelper;
import it.gotoandplay.smartfoxserver.lib.ActionscriptObject;

/**
 * @author chenbin01
 * 
 */
public class WebgameExtension extends AbstractExtension {

	/**
	 * 
	 */
	public WebgameExtension() {
		// TODO Auto-generated constructor stub
	}
	
	private int roomCounter;
	private String currZone;
	private Zone zone;
	private ExtensionHelper helper;
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * it.gotoandplay.smartfoxserver.extensions.ISmartFoxExtension#handleRequest
	 * (java.lang.String, it.gotoandplay.smartfoxserver.lib.ActionscriptObject,
	 * it.gotoandplay.smartfoxserver.data.User, int)
	 */
	public void init() {
		roomCounter = 0;
		currZone 	= this.getOwnerZone();
		helper		= ExtensionHelper.instance();
		zone		= helper.getZone(currZone);
		ApplicationFacade.getInst().startup();
		
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * it.gotoandplay.smartfoxserver.extensions.ISmartFoxExtension#handleRequest
	 * (java.lang.String, it.gotoandplay.smartfoxserver.lib.ActionscriptObject,
	 * it.gotoandplay.smartfoxserver.data.User, int)
	 */
	@Override
	public void handleRequest(String arg0, ActionscriptObject arg1, User arg2,
			int arg3) {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * it.gotoandplay.smartfoxserver.extensions.ISmartFoxExtension#handleRequest
	 * (java.lang.String, java.lang.String[],
	 * it.gotoandplay.smartfoxserver.data.User, int)
	 */
	@Override
	public void handleRequest(String arg0, String[] arg1, User arg2, int arg3) {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)s
	 * 
	 * @see
	 * it.gotoandplay.smartfoxserver.events.IEventListener#handleInternalEvent
	 * (it.gotoandplay.smartfoxserver.events.InternalEventObject)
	 */
	@Override
	public void handleInternalEvent(InternalEventObject arg0) {
		// TODO Auto-generated method stub
		 
	}
	
	

}
